package router

import (
	"api-gate/handler"
	"github.com/gin-gonic/gin"
)

func LordRouter(r *gin.Engine) {
	api := r.Group("/api")
	{
		user := api.Group("/user")
		{
			user.POST("/register", handler.Register)
			user.POST("/login", handler.Login)
			user.POST("/patientsAdd", handler.PatientsAdd)
			user.POST("/patientsList", handler.PatientsList)
			user.POST("/upload", handler.Upload)
		}
	}
}
